<template>
  <div id="app">
    <div> 自己文件测试 入口 </div>
    <cs-button @click="search" >主按钮</cs-button>
    <cs-button @click="search" type="minor">次按钮</cs-button>
    <cs-button @click="search" type="general">普通按钮</cs-button>
    <cs-button @click="search" type="text">文字按钮</cs-button>
    <!-- 输入框 -->
    <cs-input v-model='value' clearable></cs-input>

    <!-- <cs-container>
      <div class="view1"></div>
    </cs-container>
     -->
    <csgTable :formData="roleList" :total="total" :page.sync="queryParams.pageNum"
          :limit.sync="queryParams.pageSize" @pagination="getList"
          @selection="selection">
    </csgTable>

    <csgDialog :show="show" @cancel='cancel' :closeOnClickModal="true"></csgDialog>
  </div>
</template>

<script>
export default {
  name: "App",
  data() {
    return {
      value: '1234', // 关联值
      roleList:[],
      total:0,
      // 查询参数
      queryParams: {
        pageNum: 1,
        pageSize: 10,
        roleName: undefined,
        roleKey: undefined,
        status: undefined
      },
      show:true,
    };
  },
  methods: {
    cancel(){
this.show=false
    },
    getList(){

    },
    selection(){

    },
    search(evt) {
      console.log(evt, "搜索",this.value,'输入框内容');
    },
  },
};
</script>

<style lang="scss">
body {
  margin: 0px;
}
#app {
  padding: 20px;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei",
    "微软雅黑", "Hiragino Sans GB", Arial, sans-serif;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.view1 {
  // background: #ff0000;
  height: 100vh;
  width: 100vw;
}
</style>
